<template>
  前期所需要的知识{{ myid }}: {{ mytext }}<br>
</template>

<script>
import { reactive, toRefs } from '@vue/reactivity'
export default {
    props:['title','id'],
    setup (props) {
        const state = reactive({
            mytext: props.title,
            myid: props.id
        })

        return {
            ...toRefs(state)
        }
    }
}
</script>

<style>

</style>